package rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class RemoteHelloWorld extends UnicastRemoteObject implements RmiDemo{

  protected RemoteHelloWorld() throws RemoteException {
    System.out.println("RemoteHelloWorld 构造方法");
  }

  @Override
  public String hello() throws RemoteException {
    System.out.println("服务端别调用了");
    return "200";
  }
}
